Skip to content

Release v0.10.0: DEX 038-040, StackMapTable, ctor-init binding & boolean/int-web hardening - #36

Merged
VillanCh merged 4 commits into
mainfrom
feat/round3-dex038-040-stackmap-websplit
Nov 21, 2026
Merged

VillanCh merged 4 commits into
mainfrom
feat/round3-dex038-040-stackmap-websplit

Conversation

@VillanCh

Copy link
Copy Markdown
Contributor

Summary

Release candidate for JavaJive v0.10.0 containing Rounds 3, 4, and 5 hardening commits ahead of v0.9.0 (f918203c):

  1. Round 3 (4548a3ed) — DEX 038–040, Opcodes 0xfa–0xff, StackMapTable, and Web-Split Width Fix:
    • Added DEX 038/039/040 support, invoke-polymorphic (0xfa/0xfb), invoke-custom (0xfc/0xfd), const-method-handle (0xfe), const-method-type (0xff), and missing DEX metadata/method-handle/call-site handling.
    • Added StackMapTable generation in dex2jar/lower/stackmap.go and fixed live-range web-splitting width handling (webs.go, constraints.go).
  2. Round 4 (6f549435) — AAB Zero-Stub Recovery, Constructor-Prefix Deferral, Forward Regions & DEX Constraints:
    • Hardened constructor_retain_prefix.go (pure escaping deferral, ordered multi-arg handling, array initializer retention), forward_region.go (nested multi-exit forward-region structuring), and dex2jar IR/lower web & constraint resolution, driving bundletool-install-time.aab method stubs from 31 to 0.
  3. Round 5 (bdd1d827) — Constructor Allocation Binding, Boolean Store Guards & Split Int-Category Web Unification:
    • Added allocation_init_binding.go and this(...) alias delegation rendering (IsThisAlias), eliminating uninitialized-var <init> calls and reordered constructor arguments.
    • Added boolean_store_guard.go and assignment-preservation guards so Z field/local stores cannot poison shared int variables (such as Build.VERSION.SDK_INT and loop counters), and preserved int declaration types under coerced IsFirst assignments.
    • Added two-phase unifySplitIntCategoryWebs() (split_int_category_web.go) unifying split int/boolean phi-webs and chained boolean-into-int copy webs with fail-closed domain checks, plus sealed unit tests (./classparser/decompiler/core: 413 -> 421 tests).
  4. Release Prep (a4077fd5):
    • Bumped javajive.Version to "0.10.0".

Local Validation

  • go run ./cmd/javajive version -> javajive 0.10.0
  • go run ./tools/requiredci -check -> PASS
  • go run ./tools/requiredci -run contract / algorithm / dex / corpus -> PASS
  • go vet ./... & CGO_ENABLED=0 go build ./... & CGO_ENABLED=0 go build -tags javajive_full_jdk ./... -> PASS
  • JAVAJIVE_EXTERNAL_EVAL=1 go test -v -count=1 ./test/external -> PASS (TestExternalJModAndJImage skipped without JAVAJIVE_JIMAGE_INTEGRATION=1)
  • bundletool-install-time.aab (--best-effort): 1,298/1,298 .java files, 0 warnings, 0 method stubs, 0 BROKEN_CTOR_VAR_CALL, 0 INCOMPLETE_OR_INIT, 0 BOOL_FOR_HEADER, 0 int <-> boolean bare copy mismatches

@VillanCh
VillanCh merged commit 2f41187 into main Nov 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant